package auction.bbs.action;

import java.io.IOException;



import auction.bbs.dao.BbsDao;
import auction.bbs.dto.BbsDTO;

import com.opensymphony.xwork2.ActionSupport;


@SuppressWarnings({ "serial" })
public class ViewAction extends ActionSupport{
	private BbsDTO bbsDTO;
	private int currentPage;
	private int seq;
	private BbsDao dao;

	public ViewAction() throws IOException{
		dao = BbsDao.getinstance();
	
	}
	
	public String execute()throws Exception{
		bbsDTO=dao.getData(seq);
		return SUCCESS;
	}
	

	
	
	
	
	
	public int getSeq() {
		return seq;
	}


	public void setSeq(int seq) {
		this.seq = seq;
	}


	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public BbsDTO getBbsDTO() {
		return bbsDTO;
	}

	public void setBbsDTO(BbsDTO bbsDTO) {
		this.bbsDTO = bbsDTO;
	}
	
	
}
